package com.czxy.tanhua.dubbo.mappers;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.czxy.tanhua.entity.Settings;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

/**
 * @Author 爱吃豆的土豆、
 * @Date 2023/4/6 9:34
 */
@Mapper
public interface SetMapper extends BaseMapper<Settings> {
    @Select("SELECT * FROM `tb_settings` WHERE user_id = #{userid}")
    public Settings findSetting(@Param("userid") Long userid);
}
